<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="UTF-8">
        <title>登录页</title>
    </head>
    <body>
        <h1>登录页</h1>
        <!--错误信息提示-->
        <div class="message" style="color: red;">
            {% if message %}
            {{ message }}
            {% endif %}
        </div>

        <!--登录表单-->
        <div>
            <form action="/login/" method="POST">
                {% csrf_token %}
                <label for="">用户名：</label>
                <input type="text" name="username" placeholder="请输入用户名" style="box-shadow: 0 0 4px #06c">
                <br>
                <label for="">&nbsp;&nbsp;&nbsp;密码：</label>
                <input type="password" name="password" placeholder="请输入密码" style="box-shadow: 0 0 4px #06c">
                <input type="submit" value="提交">

            </form>
        </div>
    </body>
</html>